当前位置: 首页> 函数类别大全> pi

pi

得到圆周率值
名称:pi
分类:数学
所属语言:php
一句话介绍:返回圆周率的值。

实例

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">pi</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

亲自试一试

同类函数
  •  以 10 为底的对数 log10

    log10

    以10为底的对数
  •  反正切 atan

    atan

    反正切
  •  二进制转换为十进制 bindec

    bindec

    二进制转换为十进制
  •  播下一个更好的随机数发生器种子 mt_srand

    mt_srand

    播下一个更好的随机数发生器种子
  •  进一法取整 ceil

    ceil

    进一法取整
  •  计算一直角三角形的斜边长度 hypot

    hypot

    计算一直角三角形的斜边长度
  •  判断是否为有限值 is_finite

    is_finite

    判断是否为有限值
  •  对浮点数进行四舍五入 round

    round

    对浮点数进行四舍五入
热门文章